package com.lvy.hczn.front.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lvy.hczn.front.system.domain.business.SortTaskDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SortTaskDetailMapper extends BaseMapper<SortTaskDetail> {

    /**
     * 根据分拣人员账号查询需分拣的原料列表
     *
     * @param clientId
     * @param status
     * @return
     * @author yw
     * @date 2022-04-15 19:56:35
     */
    List<String> selectSortSpuIdByClient(@Param(value = "clientId") String clientId, @Param(value = "status") String status);

    /**
     * 获取分拣任务列表
     *
     * @param clientId
     * @param status
     * @return
     * @author yw
     * @date 2022-04-15 19:56:35
     */
    List<SortTaskDetail> selectByClient(@Param(value = "clientId") String clientId, @Param(value = "status") String status, @Param(value = "spuId") String spuId, @Param(value = "batchCode") String batchCode, @Param(value = "bigProduct") Integer bigProduct);

    /**
     * 发送到平台数据查询
     *
     * @param sortTaskDetail
     * @return
     */
    List<SortTaskDetail> sendSortDoneToPlatform(@Param(value = "sortTaskDetail") SortTaskDetail sortTaskDetail);
}
